[BLKTAP]: Copy shared data before verification
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 19 Oct 2006 13:50:47 +0000 (14:50 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 19 Oct 2006 13:50:47 +0000 (14:50 +0100)
commit50b362a182eb470950d65f2c971cc55c5ccbdc64
treec2e7fef4027a6d30858483bfdf4135a7646ddb61
parent204732dd72585da399c4ed7c4a452e3ac735bb40
[BLKTAP]: Copy shared data before verification

As it is blktap verifies the metadata from the frontend in place.
This means we run the risk of the frontend changing the data after
we've verified it.  This patch copies the data onto the stack before
verifying and using it to ensure we see a consistent snapshot.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c